home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / network / ka9q / nhclb120.zoo / td.c < prev    next >
C/C++ Source or Header  |  1992-06-21  |  307b  |  19 lines

  1. #include <sys/types.h>
  2. #include <sys/stat.h>
  3. #include <dirent.h>
  4. #include <stdio.h>
  5. main(argc,argv)
  6.      int argc; char *argv[];
  7. {
  8.   DIR *dirp;
  9.   struct dirent *dp;
  10.   dirp = opendir( "." );
  11.   while ( (dp = readdir( dirp )) != NULL )
  12.     
  13.     {
  14.       printf("%s ", dp->d_name);
  15.    }
  16.   closedir( dirp );
  17.   
  18. }
  19.